import {
  SAVE_PHOTO_URL,
  SAVE_IMG_INFO,
  STE_OPEN_ID,
  SET_USER_INFO
} from './mutation-types.js'

export default {
  [SAVE_PHOTO_URL] (state, src) {
    state.photoUrl = src
  },
  [SAVE_IMG_INFO] (state, src) {
    state.imgInfo = src
  },
  [STE_OPEN_ID] (state, v) {
    state.openId = v
  },
  [SET_USER_INFO] (state, info) {
    state.userInfo = info
  }
}
